Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-helper-evaluate-path

Package Overview
Dependencies
Maintainers
7
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-helper-evaluate-path

path.evaluate wrapped in a try catch

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

babel-helper-evaluate-path

A wrapper for babel's path.evaluate

Fixes / Features:

  • Detect usages before initialization / declaration
function foo() {
  console.log(b); // ReferenceError
  let b = 1;
}

function bar() {
  console.log(a); // a is void 0
  var a = 5;
  console.log(a); // 5
}
  • Detect usages in scopes outside of initialization for vars (hoisted)
function foo() {
  if (a) var x = 5;
  console.log(x); // cannot determine
}

Installation

npm install babel-helper-evaluate-path --save-dev

Keywords

FAQs

Package last updated on 24 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc